package com.maybach.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.common.model.FinanceFlowDO;
import com.maybach.common.query.FinanceFlowQuery;

import java.util.List;


/**
 * Manager for FinanceFlow.
 */
public interface FinanceFlowManager {
    /**
     * query count by query condition.
     */
    int countByQuery(FinanceFlowQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(FinanceFlowQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(FinanceFlowDO record);

    /**
     * insert selective.
     */
    long insertSelective(FinanceFlowDO record);

    /**
     * select by query condition.
     */
    List<FinanceFlowDO> selectByQuery(FinanceFlowQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<FinanceFlowDO> selectByQueryWithPage(FinanceFlowQuery query);

    /**
     * select by primary key.
     */
    FinanceFlowDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( FinanceFlowDO record,  FinanceFlowQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(FinanceFlowDO record, FinanceFlowQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FinanceFlowDO record);
}